package com.office.forum.manage.category.mapper;

import java.util.List;
import com.office.forum.manage.category.domain.ForumPostCategory;

/**
 * 帖子分类Mapper接口
 * 
 * @author ruoyi
 * @date 2025-05-31
 */
public interface ForumPostCategoryMapper 
{
    /**
     * 查询帖子分类
     * 
     * @param categoryId 帖子分类主键
     * @return 帖子分类
     */
    public ForumPostCategory selectForumPostCategoryByCategoryId(Long categoryId);

    /**
     * 查询帖子分类列表
     * 
     * @param forumPostCategory 帖子分类
     * @return 帖子分类集合
     */
    public List<ForumPostCategory> selectForumPostCategoryList(ForumPostCategory forumPostCategory);

    /**
     * 新增帖子分类
     * 
     * @param forumPostCategory 帖子分类
     * @return 结果
     */
    public int insertForumPostCategory(ForumPostCategory forumPostCategory);

    /**
     * 修改帖子分类
     * 
     * @param forumPostCategory 帖子分类
     * @return 结果
     */
    public int updateForumPostCategory(ForumPostCategory forumPostCategory);

    /**
     * 删除帖子分类
     * 
     * @param categoryId 帖子分类主键
     * @return 结果
     */
    public int deleteForumPostCategoryByCategoryId(Long categoryId);

    /**
     * 批量删除帖子分类
     * 
     * @param categoryIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteForumPostCategoryByCategoryIds(Long[] categoryIds);
}
